<?php declare(strict_types=1);

namespace Unit\Helpers;
use PHPUnit\Framework\Attributes\Test,
    PHPUnit\Framework\Attributes\DataProvider;

class HttpResponse extends \PHPUnit\Framework\TestCase
{
    protected static \Umserv\ExchangeInterfaces\V1\Helpers\HttpResponse $httpResponse;

    public static function setUpBeforeClass(): void
    {
        self::$httpResponse = \Umserv\ExchangeInterfaces\V1\Helpers\HttpResponse::getInstance();
    }

    #[Test]
    public function currentInstanceClassIsSame() {
        $this->assertSame(\Umserv\ExchangeInterfaces\V1\Helpers\HttpResponse::class, self::$httpResponse::class);
    }

    #[Test]
    public function currentInstanceHasSuccessResponseMethod() {
        $response = new \Umserv\ExchangeInterfaces\V1\Core\Http\Response();
        $this->assertTrue(method_exists(self::$httpResponse, 'SuccessResponse'));
    }

    #[Test]
    public function currentInstanceHasErrorResponseMethod() {
        $response = new \Umserv\ExchangeInterfaces\V1\Core\Http\Response();
        $this->assertTrue(method_exists(self::$httpResponse, 'ErrorResponse'));
    }
}